package assignment7;

/**
 * Class for Vertex types
 * 
 * @author Terry Wasserleben CS204-21370 Prof. Jeannette Myers Due: 11/21/2011
 */
public class Vertex {
	
	private String fName, lName, hTown;
	
	/**
	 * Constructor for Vertex
	 * 
	 * @param fName First Name variable
	 * @param lName Last Name variable
	 * @param hTown Hometown variable
	 */
	public Vertex(String fName, String lName, String hTown) {
		this.fName = fName;
		this.lName = lName;
		this.hTown = hTown;
	}
	
	/**
	 * method to set the Vertex variable
	 * 
	 * @param fName First Name variable
	 * @param lName Last Name variable
	 * @param hTown Hometown variable
	 */
	public void setVertex(Vertex v) {
		fName = v.fName;
		lName = v.lName;
		hTown = v.hTown;
	}
	
	/**
	 * method to get the Vertex variable
	 * 
	 * @return String variable returned in format fName:lName:hTown
	 */
	public String getVertex() {
		return fName + ":" + lName + ":" + hTown;
	}
	
}
